package com.study.spring.security.mapper;

import com.study.spring.security.bean.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.core.userdetails.User;

public interface UserMapper {
    @Select("select * from tb_user where username= #{username, jdbcType=VARCHAR}")
    UserInfo getUserByName(@Param("username") String username);
}
